FROM php:7.4.8-fpm
MAINTAINER Yanlongli ahlyl94@gmail.com
ADD "https://mirrors.aliyun.com/composer/composer.phar?spm=a2c6h.265751.1380423.3.728e2621hZeNnA&file=composer.phar" /usr/local/bin/composer
RUN chmod uga+x /usr/local/bin/composer
ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync && \
    install-php-extensions gd xdebug bcmath redis opcache

## 来自基础php镜像
#RUN apt-get update && apt-get install -y \
#    libfreetype6-dev \
#    libjpeg62-turbo-dev \
#    libpng-dev \
#    && docker-php-ext-install bcmath redis opcache \
##    && pecl install xdebug \
